package com.navi168.fwq21.monitoring;

import com.navi168.fwq21.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class TrackIndex extends Activity {
	private Button okButton;
	private Button canceButton;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.gjhfmap);
		findviews();
		setliseters();

	}

	private void setliseters() {
		okButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(TrackIndex.this, TrackShow.class);
				startActivity(intent);

			}
		});
		
		canceButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				TrackIndex.this.finish();
				
			}
		});
		
	}

	private void findviews() {
		okButton = (Button) findViewById(R.id.ckbutton);
		canceButton = (Button) findViewById(R.id.cancebutton);


	}

}
